package indi.zhifa.study2024.class002.busy.generalTest.enums.bill.consign;

import com.baomidou.mybatisplus.annotation.EnumValue;
import indi.zhifa.study2024.core.enummemo.entity.ann.EnumDesc;
import lombok.Getter;
import lombok.RequiredArgsConstructor;

@RequiredArgsConstructor
@EnumDesc(name = "销售单类型",desc = "销售单类型",defaultIdx = 1,defaultItem = "销售单")
public enum EConsignType {

    CONSIGN(1,"销售单","销售单，该单据从中间商出售商品到门店"),
    RETURN(2,"退货单","该单据从门店退货到中间商"),
    EXCHANGE(3, "换货单","换货单，门店把不好的货物退给中间商，拿到一个新的货物，相当于一个销售一个退货");

    @EnumValue
    @Getter
    private final int code;
    @Getter
    private final String name;
    @Getter
    private final String desc;
}
